#ifndef __QUEUE_H
#define __QUEUE_H

#include <stdio.h>
#include <stdlib.h>
#include <dos.h>
#include <pc.h>

#include "utypes.h"
#include "ints.h"

typedef struct {
    char* buf;
    int in;
    int out;
    int cnt;
    int size;
} Queue;

void queueInit(Queue *q, int size);
Bool queuePut(Queue *q, char c);
int queueGet(Queue *q);
Bool queueEmpty(Queue *q);
Bool queueFull(Queue *q);
void beep();

#endif /* __QUEUE_H */
